package com.wicket.okrcalc.biz.service.dto.common;

import com.wicket.okrcalc.common.dto.BaseDto;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import javax.validation.constraints.NotNull;
import lombok.Data;
import java.util.Objects;

/**
 * @desc DataSetsListOneDto
 * @使用场景
 */
@Data
public class DataSetsListOneDto extends BaseDto implements Serializable {

  /**
   * 通用主键ID
   */
  @ApiModelProperty("通用主键ID")
  private String commPrimaryKey;

  /**
   * 通用时间字段
   */
  @ApiModelProperty("通用时间字段")
  private Date comTimeField;

  /**
   * 计算入参1
   */
  @ApiModelProperty("计算入参1")
  private Double calcPara1;

  /**
   * 计算入参2
   */
  @ApiModelProperty("计算入参2")
  private Double calcPara2;
/**
     * 通用数值字段（小数型） 
     */
    @NotNull(message = "通用数值字段（小数型）不能为空")
@ApiModelProperty("通用数值字段（小数型）")
    private Double	 comFloatField;
/**
     * 实时得分等级 
     */
    @ApiModelProperty("实时得分等级")
    private String	 realTimeScoreLevel;
/**
     * 通用文本字段 
     */
    @ApiModelProperty("通用文本字段")
    private String	 comTxtField;
@Override
  public boolean equals(Object o) {
      if (this == o) return true;
      if (o == null || getClass() != o.getClass()) return false;
      if (!super.equals(o)) return false;
      DataSetsListOneDto that = (DataSetsListOneDto) o;
      return  commPrimaryKey == that.commPrimaryKey&&comTimeField == that.comTimeField&&calcPara1 == that.calcPara1&&calcPara2 == that.calcPara2&&comFloatField == that.comFloatField&&realTimeScoreLevel == that.realTimeScoreLevel&&comTxtField == that.comTxtField;
    }
@Override
  public int hashCode() {
      return Objects.hash(super.hashCode(), commPrimaryKey,comTimeField,calcPara1,calcPara2,comFloatField,realTimeScoreLevel,comTxtField);
    }

}
